package netty.queue;

import org.jetbrains.annotations.NotNull;

import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;

public class ZetasThreadFactory implements ThreadFactory {
    private final AtomicInteger index = new AtomicInteger(1);

    @Override
    public Thread newThread(@NotNull Runnable r) {
        return new Thread(r,"RBQ-"+index.getAndIncrement());
    }
}
